package edu.kaist.cs442.server.locationalpush;

import edu.kaist.cs442.server.locationalpush.push.c2dm.MessageVO;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.UUID;

@Path("/")
public class test {
/*
Test url: http://localhost:8080/notification/echo/asdf
*/
    @GET
    @Path("/echo/{str}")
    @Produces(MediaType.APPLICATION_JSON)
    public MessageVO echo(@PathParam("str") String paramStr) {
	    MessageVO message = new MessageVO(UUID.randomUUID().toString());
	    message.put("tickerText", "Help me ticker");
	    message.put("contentTitle", "Help me title");
	    message.put("contentText", "Help me text");
        return message;
    }

}